package com.sree.tali.actions;

import com.sree.tali.buscomp.AdminBusComp;
import com.sree.tali.buscomp.AdminBusCompImpl;
import com.sree.tali.plugin.HibernatePlugin;
import com.sree.tali.pojo.AdminHomepojo;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.actions.DispatchAction;
import org.hibernate.SessionFactory;

public class UploadHomeAction
  extends DispatchAction
{
  AdminBusComp buscomp = new AdminBusCompImpl();
  
  public ActionForward uploadHome(ActionMapping paramActionMapping, ActionForm paramActionForm, HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
    throws Exception
  {
    AdminHomepojo localAdminHomepojo = (AdminHomepojo)paramActionForm;
    SessionFactory localSessionFactory = (SessionFactory)this.servlet.getServletContext().getAttribute(HibernatePlugin.KEY_NAME);
    localAdminHomepojo.setFilPath(getServlet().getServletContext().getRealPath("/") + localAdminHomepojo.getUploadType().toUpperCase() + "/" + localAdminHomepojo.getFolderName());
    this.buscomp.UploadHomeAction(localAdminHomepojo, localSessionFactory.openSession());
    return paramActionMapping.findForward("welcome");
  }
}


/* Location:           D:\sreenu\talivud-new-110514\talivud-new\dist\WEB-INF\classes\
 * Qualified Name:     com.sree.tali.actions.UploadHomeAction
 * JD-Core Version:    0.7.0.1
 */